package com.zeroone.star.cpp.service;

import com.zeroone.star.cpp.config.FeignConfiguration;
import com.zeroone.star.cpp.fall.CppServiceFallBack;
import com.zeroone.star.project.dto.PageDTO;
import com.zeroone.star.project.dto.sample.SampleDTO;
import com.zeroone.star.project.vo.JsonVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>
 * 描述：测试Sample模块服务调用
 * </p>
 * <p>版权：&copy;01星球</p>
 * <p>地址：01星球总部</p>
 * @author 阿伟学长
 * @version 1.0.0
 */
@FeignClient(
        name = "${sn.sample}",
        fallbackFactory = CppServiceFallBack.class,
        configuration = FeignConfiguration.class
)
public interface ISampleJava {
    @GetMapping("/sample/query-all")
    JsonVO<PageDTO<SampleDTO>> listAll(@RequestParam Map<String, Object> query);
}
